/**
 * 
 */
package org.t2.backstage.module.player.service;

import java.util.List;

import org.banish.sql.core.util.QuerySet;
import org.gaming.backstage.PageData;
import org.gaming.service.service.redis.OneToManyService;
import org.springframework.stereotype.Service;
import org.t2.backstage.module.player.model.ForbidIp;

/**
 * @author YY
 */
@Service
public class ForbidIpService extends OneToManyService<ForbidIp> {

	public PageData<ForbidIp> query(QuerySet querySet) {
		List<ForbidIp> list = this.repository().getBaseDao().queryListWhere(querySet.getWhere(), querySet.getParams());
		
		PageData<ForbidIp> pageData = new PageData<>();
		pageData.setCount(this.repository().getBaseDao().countWhere(querySet.getCountWhere(), querySet.getCountParams()));
		pageData.setData(list);
		return pageData;
	}

	@Override
	protected String namespace() {
		return "system";
	}
	
}
